package cn.buyclss.backend.entity.po.shop;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

/**
 * @author: Cecurio
 * @create: 2019-03-11 23:19
 **/
public class ShopPO {
    /**
     * 商铺编号
     */
    private Integer id;

    /**
     * 商家编号 对应p_user表的用户
     */
    private Integer ownId;

    /**
     * 商铺名称
     */
    private String name;

    /**
     * 商铺简介
     */
    private String introduction;

    /**
     * 商家logo
     */
    private String logo;

    /**
     * 商家地址
     */
    private String address;

    /**
     * 商品总数
     */
    private Integer goodsCount;

    /**
     * 订单总数
     */
    private Integer orderCount;

    /**
     * 好评次数 好评次数
     */
    private Integer goodMarkTimes;


    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createdTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOwnId() {
        return ownId;
    }

    public void setOwnId(Integer ownId) {
        this.ownId = ownId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public Integer getGoodMarkTimes() {
        return goodMarkTimes;
    }

    public void setGoodMarkTimes(Integer goodMarkTimes) {
        this.goodMarkTimes = goodMarkTimes;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "ShopPO{" +
            "id=" + id +
            ", ownId=" + ownId +
            ", name='" + name + '\'' +
            ", introduction='" + introduction + '\'' +
            ", logo='" + logo + '\'' +
            ", address='" + address + '\'' +
            ", goodsCount=" + goodsCount +
            ", orderCount=" + orderCount +
            ", goodMarkTimes=" + goodMarkTimes +
            ", createdTime=" + createdTime +
            '}';
    }
}
